package com.itsv.xhyy;

import com.itsv.cyzx.dao.ScheduleVO;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

public class CallAlarm extends BroadcastReceiver {
	private ScheduleVO scheduleVO_del;

	@Override
	public void onReceive(Context context, Intent intent) {
		// Intent intent2 = ((Activity) context).getIntent();
		scheduleVO_del = (ScheduleVO) intent.getExtras()
				.getSerializable("data");
		System.out.println("*****************" + scheduleVO_del.getTime());
		Intent i = new Intent(context, AlarmAlert.class);
		Bundle bundleRet = new Bundle();
		bundleRet.putString("SRC_CALLER", "");
		i.putExtras(bundleRet);
		i.putExtra("data", scheduleVO_del);
		i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		context.startActivity(i);
	}
}
